// 商品信息 - 路由
'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.get('/tube/admin/queryProduct', controller.cProduct.pc_c_query);
  router.post('/tube/admin/createProduct', controller.cProduct.pc_c_create);
  router.put('/tube/admin/updateProduct', controller.cProduct.pc_c_update);
  router.delete('/tube/admin/deleteProduct', controller.cProduct.pc_c_delete);
  router.get('/tube/admin/detailProduct', controller.cProduct.pc_c_detail);
  router.post('/tube/admin/batchMountProduct', controller.cProduct.pc_c_batchMount);
  router.post('/tube/admin/deleteMountProduct', controller.cProduct.pc_c_deleteMountProduct);

  router.get('/tube/user/queryProduct', controller.cProduct.wa_c_query);
  router.get('/tube/user/searchProduct', controller.cProduct.wa_c_search);
}
